package com.elitel.frame.base.service;

import com.elitel.frame.main.entity.BaseQueryfield;
import com.elitel.frame.main.entity.ext.BaseShowfieldExt;
import com.elitel.frame.main.entity.ext.PrjServiceExt;
import com.elitel.frame.main.entity.polym.CfgMultQueryField;
import com.elitel.frame.main.entity.polym.CfgMultResultField;
import com.elitel.frame.main.entity.polym.PolymVO;
import com.elitel.frame.main.entity.polym.SaveParamsInfoDTO;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.util.List;
import java.util.Map;

public interface PolymService {
    /**
     * 保存配置信息
     *
     * @param params
     */
    void saveCfgInfo(PolymVO params) throws JsonProcessingException;

    List<PrjServiceExt> getServerList(Map<String, Object> params);

    /**
     * @param params 
     * @return
     */
    List<BaseQueryfield> getParamsById(Map<String, Object> params);

    /**
     * 
     * 
     * @return 
     */
    Map<String, Object> getPolymInfo( Map<String, Object> map);

    void saveParamsInfo(SaveParamsInfoDTO saveParamsInfoDTO);

    List<CfgMultQueryField> getParamsInfo(Map<String, Object> params);

    void saveResInfo(List<CfgMultResultField> list, String serviceId);

    List<CfgMultResultField> getResInfo(Map<String, Object> params);

    List<BaseShowfieldExt> getResById(Map<String, Object> params);

    /**
     * @param guid 
     */
    void delByGuId(String guid);

    /**
     * @param guid 
     * @return
     */
    String selectRelByServiceGuid(String guid);
}
